Add new networking infrastructure to Xm-Test. The goal is to make
authorstekloff@dyn9047022152.beaverton.ibm.com <stekloff@dyn9047022152.beaverton.ibm.com>
Thu, 4 May 2006 13:22:29 +0000 (14:22 +0100)
committerstekloff@dyn9047022152.beaverton.ibm.com <stekloff@dyn9047022152.beaverton.ibm.com>
Thu, 4 May 2006 13:22:29 +0000 (14:22 +0100)
commit38a79ca247c4cc96b73830cfdc3ba4b276769fcf
tree9ba18fb726f2e2dbac472fe59cf2106496509d98
parent57a3f4ca825815cc639277ab1837984f88db0de8
Add new networking infrastructure to Xm-Test. The goal is to make
creating domains with networking very easy. This patch:

1) Adds new XenDevice class, with the XenNetDevice subclass. These
   classes represent devices for xm-test and are tied to XenDomains.
   This can eventually be used for block devices as well. Currently,
   devices must be added to domains prior to starting the domain. The
   attach and detach needs to be handled.

2) Adds a new NetConfig class to handle configuring the network
   environment in which the tests run. This patch only handles ranges
   of IPs in a bridged environment. DHCP needs to be added as well as
   handling NAT and routed environments.

3) Modifies XenDomain class to handle XenDevices.

4) Adds new configuration options for defining a range of IPs, their
   network address, and their netmask.

5) Removes the old Network.py and Network class.

6) Modifies the existing tests to use the new infrastructure.

7) Adds some documentation to help creating domains.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
17 files changed:
tools/xm-test/configure.ac
tools/xm-test/lib/XmTestLib/NetConfig.py [new file with mode: 0644]
tools/xm-test/lib/XmTestLib/Network.py [deleted file]
tools/xm-test/lib/XmTestLib/XenDevice.py [new file with mode: 0644]
tools/xm-test/lib/XmTestLib/XenDomain.py
tools/xm-test/lib/XmTestLib/__init__.py
tools/xm-test/lib/XmTestLib/config.py.in
tools/xm-test/tests/create/13_create_multinic_pos.py
tools/xm-test/tests/network/02_network_local_ping_pos.py
tools/xm-test/tests/network/03_network_local_tcp_pos.py
tools/xm-test/tests/network/04_network_local_udp_pos.py
tools/xm-test/tests/network/05_network_dom0_ping_pos.py
tools/xm-test/tests/network/06_network_dom0_tcp_pos.py
tools/xm-test/tests/network/07_network_dom0_udp_pos.py
tools/xm-test/tests/network/11_network_domU_ping_pos.py
tools/xm-test/tests/network/12_network_domU_tcp_pos.py
tools/xm-test/tests/network/13_network_domU_udp_pos.py